const defaultStore = {
  inputValue: 'Write something',
  list: [
    'Racing car sprays burning fuel into crowd.',
    'Japanese princess to wed commoner.',
    'Australian walks 100km after outback crash.',
    'Man charged over missing wedding girl.',
    'Los Angeles battles huge wildfires.',
  ]
}
export default (state = defaultStore, action) => {
  switch(action) {
    case 'CHANGE_INPUT':
      let {...newState} = state
      newState.inputValue = action.value
      return newState;
    default:
      break;
  }

  return state
}